package com.ego.user;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;


import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = EgoUserService.class)
public class test {
    @Resource
    private StringRedisTemplate stringRedisTemplate;
    @Test
    public void send(){
        stringRedisTemplate.opsForValue().set("123456","123456");
        String s = stringRedisTemplate.opsForValue().get("123456");
        System.out.println(s);
    }
}
